Draw a path once, on its own grid or over a room, and assign it to as many instances as want to follow it.
A path is its own project asset (Paths tab), drawn on a grid or over a chosen room as a backdrop so it lines up with the world it belongs to. New Path suggests a free name such as path_1, and when you open a path the first room that uses it is shown behind it:
PATH_LOOP/PATH_PING_PONG/PATH_STOP/PATH_CONTINUE actually do for a following instance).The window beside the picture (drag it by its title bar; it belongs to the Paths tab) has one folding section called Lines, and inside it a section for every line of the open path (click a line's name and that line glows on the picture; point at it and it lights up): nodes 1 to 2, nodes 2 to 3, and so on. Open one to see and change that line's speed, in pixels per frame; Use the path's speed takes the line's own speed away again. A line with no speed of its own goes at the Default speed. The marker of ▶ Play goes at the speed of the line it is on. In your code, path_start(patrol, , PATH_LOOP, true) (the speed left out) follows these speeds, and a speed written in the call wins over them - see path_start.
Under Used in the window shows, in drawers, which rooms and instances use the path: a section for rooms (each room, then each placed instance in it) and one for objects (each object, then each event), plus scripts and other places. An instance that uses the path more than once - the room gives it the path and its own code starts it too - is one section with several uses; click a use to open it. Renaming a path updates every use - paths are project assets specifically so one patrol route can serve a dozen enemies rather than being redrawn per instance.
From the Room Editor tab, right-click a placed instance and choose Assign path…. The dialog asks for:
STOP, LOOP, PING_PONG or CONTINUE (see Rooms for what each one does).If the object does not already have a Path End event, saving the assignment asks whether to add a stub one - a patrol with nothing written for reaching its own end is an easy thing to forget, so the editor asks rather than leaving it out.
A path and its assignment are ordinary project data: the compiler emits the path's own point table and, for every instance assigned one, a path_start(...) call with that path, its speed and its end action - the same path_start a script could call by hand. Nothing about authoring a path from this tab is special-cased at build time.